package com.it.controller;


import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * 设置前后端数据协议
 */
@Data
@NoArgsConstructor //无参构造器
public class Result {
    private Integer code; //状态码
    private Object data; //数据

    private String msg; //信息

    public Result(Integer code, Object data, String msg) {
        this.data = data;
        this.code = code;
        this.msg = msg;
    }

    public Result(Integer code, Object data) {
        this.data = data;
        this.code = code;
    }
}
